package com.itheima.service;

import com.itheima.mapper.OrderMapper;
import com.itheima.pojo.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class OrderService {
    @Autowired
    private OrderMapper orderMapper ;

    public List<Order> findById(String username){
        List<Order> orderList = orderMapper.findById(username);
        return orderList;
    }
}
